<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">艺术家作品-&gt;作品列表</div>
    <div class="main_soso">
    <form action="/art/search_art_product.shtml">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		    <td width="19" height="30" align="center"><img src="../images/clean_011.gif" width="16" height="16" /></td>
		    <td>
		       艺术家姓名： <input name="art.realName" type="text" value="${art.realName}" style="width:80px;" class="inputwidth01" id="art.realName" maxlength="30" />&nbsp;&nbsp;
		        作品名称：<input name="product.productName" value="${product.productName}" type="text" size="8" style="width:80px;" class="inputwidth01" />
		      作品类型：<select name="product.productType">
		         <option value="">请选择...</option>
		         <app:cons_select code="002" value="${product.productType}"></app:cons_select>
		      </select>
		      </td>
		    <td align="left">
		      <input name="input7" type="submit" class="input01" value="搜索" /></td>
		  </tr>
		</table>
    </form>
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="25%">作品名称</th>
          <th width="10%">作品类型</th>
          <th width="10%">作者</th>        
          <th width="10%">喜欢/关注/评论</th>
          <th width="20%">操作</th>
          <th width="10%">二维码</th> 
          <th></th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <c:forEach items="${page_list.list}" var="o">
	       <tr>
	       	  <td width="25%">${o[0].productName} </td>
	          <td width="10%"><app:code_name  code="${o[0].productType}"></app:code_name> </td>
	          <td width="10%">${o[1].realName}</td>
	          <td width="10%"> <a href="/art/search_product_comment.shtml?id=${o[0].id}">${o[0].likeCount}/${o[0].focusCount}/${o[0].commentCount} </a> </td>
	          <td width="20%">&nbsp;<a href="/art/to_art_product.shtml?id=${o[0].id}">编辑</a> &nbsp;
	           <a href="/art/art_product_detail.shtml?id=${o[0].id}">详情</a> &nbsp;
	           <a href="javascript:void(0);" onclick="convertHotPush('${o[0].id}','003003')">设为热推</a>&nbsp;
	          </td>
	          <td></td>
	       </tr>
      </c:forEach>
    </table>
  </div>
  
  <app:page></app:page>
  
  
</div>
</body>
</html>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/page.js"></script>
<script type="text/javascript" src="/scripts/xhr.js"></script>

<script type="text/javascript">
  
   function convertHotPush(id,type){
	   if(confirm("确定设置为热推?")){
		    function cb(d){
	    	 alert(d);
	        }	 
	     new xhr('/daily/su_convert_hot_push.shtml',cb).setParameter("push.pushSid",id).setParameter("push.pushType",type).execute();
	   }
   }

</script>